package com.testdocs.client.structure.top;

import com.google.gwt.user.client.ui.IsWidget;
import com.google.gwt.user.client.ui.Widget;
import com.testdocs.client.project.ProjectInfo;

public interface TopPanel extends IsWidget {
	public void setUser(String user);
	public void setSignOutUrl(String url);
	public void setProjectInfo(ProjectInfo project);
	public void setNoProjectSelected();
	public void setProjectsList(ProjectInfo[] projects);
	public void addProjectToList(ProjectInfo project);
	public void removeProjectFromList(ProjectInfo project);
	public void setSignedOutView();
	public void setSignedInView();
	public void setStatusBar(Widget widget);
	
    public void setPresenter(Presenter presenter);

    public interface Presenter {
    	public void onSignOut();
    	public void onProjectSelect(ProjectInfo projectInfo);
    	public void onCreateNewProject();
    }
}
